public class ThisDemo {
    String name="Justin";
    public void print(String name) {
        System.out.println("类中的属性 name=" + this.name);
        System.out.println("局部传参的属性 name=" + name);
    }
    public static void main(String[] args) {
        ThisDemo thisdemo = new ThisDemo();
        thisdemo.print("Lucy");
    }
}

